package highlighter.ast.impl;

import highlighter.ast.IASTNode;
import highlighter.visitor.IASTVisitor;

import java.util.ArrayList;
import java.util.Collection;

public class ClassBody implements IASTNode {

	private Collection<Statement> stmts = new ArrayList<Statement>();

	public ClassBody() {
	}

	public ClassBody(Statement stmt) {
		stmts.add(stmt);
	}

	public void add(Statement stmt) {
		getStmts().add(stmt);
	}

	public Collection<Statement> getStmts() {
		return stmts;
	}

	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
